<?php
function phptemplate_body_class($sidebar_left, $sidebar_right) {
  if ($sidebar_left != '' && $sidebar_right != '') {
    $class = 'sidebars';
  }
  else {
    if ($sidebar_left != '') {
      $class = 'sidebar-left';
    }
    if ($sidebar_right != '') {
      $class = 'sidebar-right';
    }
  }

  if (isset($class)) {
    print ' class="'. $class .'"';
  }
}
function admire_gray_preprocess_page(&$variables) {
   // Add a "go home" button to page.tpl.php
   if ($variables['logged_in'] == TRUE && $variables['is_front'] == FALSE) {
      $image_path = $variables['directory'] . "/images/go_home.jpg";
      $image_text = t("Go home!");
      $image = theme('image', $image_path, $image_text, $image_text);
      $variables['go_home'] = l($image, "<front>", array('html'=> TRUE));
   }
} // End of the preprocess_page function

function admire_gray_theme() {
 return array(
 'user_login' => array(
 'template' => 'user-login',
 'arguments' => array('form' => NULL),
 ),

 );
}
function admire_gray_menu() {
 echo "hoho";exit();
}
function admire_gray_preprocess_user_login(&$variables) {
 $variables['intro_text'] = t('This is my awesome login form');
 $variables['rendered'] = drupal_render($variables['form']);
}
function admire_gray__theme($existing, $type, $theme, $path)
{
 return array(

 'user_login' => array('template' => 'user-login','arguments' => array('form' => NULL)),
 'user_register' => array('template' => 'user-register','arguments' => array('form' => NULL))
 );
}